#ifndef TRANSACTIONCONTROLLER_H
#define TRANSACTIONCONTROLLER_H

#include <QList>

#include "core/basemodel.h"
#include "core/basecontroller.h"

#include "core/transactionmodel.h"

class TransactionController : public BaseController
{
    Q_OBJECT
public:
    explicit TransactionController(QObject *parent = 0);

    QList<BaseModel *> getAll();
    QList<BaseModel *> getAllUnpaid();
    QList<BaseModel *> getAllUndelivered();

    void addTransaction(TransactionModel *transaction);

signals:

public slots:

private:
    QList<StockModel *> getStocksOf(TransactionModel *transaction);
};

#endif // TRANSACTIONCONTROLLER_H
